package com.huage.courseplatform.application.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="轮播响应参数",description="轮播响应参数")
public class NoticePARAM {

    @NotEmpty(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "id")
    private String id;

    @NotEmpty(message = "路径不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "路径")
    private String path;

    @NotEmpty(message = "标题不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotEmpty(message = "类型", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "类型：IMG：图片，VEDIO：视频")
    private String type;

    @NotEmpty(message = "是否显示不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "是否显示：1：显示，0：不显示")
    private String isShow;

    @NotEmpty(message = "文件id不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "图片或者视频的文件ID")
    private String fileId;

    @NotEmpty(message = "商户ID不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "商户ID(Admin时为系统主页轮播)")
    private String businessId;

}
